import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * @ClassName Demo01_FOSConstructor
 * @Description FileOutputStream 类构造方法
 * @Author Li
 * @Date 2022/8/11 12:15
 * @ModifyDate 2022/8/11 12:15
 * @Version 1.0
 */
public class Demo01_FOSConstructor {
    public static void main(String[] args) throws FileNotFoundException {
        // 使用File对象创建流对象
        File file = new File("src/part09/ch02_ByteStream/a.txt");
        FileOutputStream fos = new FileOutputStream(file);

        // 使用文件名创建流对象
        FileOutputStream fos2 = new FileOutputStream("src/part09/ch02_ByteStream/b.txt");
    }
}
